import request from '@/utils/request'
import { base_url } from '@/api/config'

export function getDeviceStatusChart() {
  return request({
    url: base_url + '/report/chart',
    method: 'get'
  })
}

export function getAlarmTrend(data) {
  return request({
    url: base_url + '/report/alarm-trend',
    method: 'post',
    data
  })
}

export function getTop10Alarm(data) {
  return request({
    url: base_url + '/report/top10Alarm',
    method: 'post',
    data
  })
}

